﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Benefit.Models.ServerData
{
    /// <summary>
    /// 品种表
    /// </summary>
    public class T_Product
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int  Id { get; set; }
        /// <summary>
        /// 品种代码
        /// </summary>
        public string ProductID { get; set; }
        /// <summary>
        /// 品种代码
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 交易所代码
        /// </summary>
        public string ExchangeID { get; set; }

        /// <summary>
        /// 品种类型
        /// </summary>
        public string ProductClass { get; set; }

        /// <summary>
        /// 品种乘数
        /// </summary>
        public int  VolumeMultiple { get; set; }

        /// <summary>
        /// 最小跳动价格
        /// </summary>
        public double PriceTick { get; set; }
        /// <summary>
        /// 市价单最大下单量
        /// </summary>
        public int  MaxMarketOrderVolume { get; set; }
        /// <summary>
        /// 市价单最小下单量
        /// </summary>
        public int  MinMarketOrderVolume { get; set; }

        /// <summary>
        /// 限价单最大下单量
        /// </summary>
        public int  MaxLimitOrderVolume { get; set; }

        /// <summary>
        /// 限价单最小下单量
        /// </summary>
        public int  MinLimitOrderVolume { get; set; }
        /// <summary>
        /// 持仓类型
        /// </summary>
        public string PositionType { get; set; }
        /// <summary>
        /// 持仓日期类型
        /// </summary>
        public string PositionDateType { get; set; }
        ///// <summary>
        ///// 获取所有品种
        ///// </summary>
        ///// <returns></returns>
        //public List<T_Product> GetList()
        //{
        //    List<T_Product> products = new List<T_Product>();
        //    List<object> objs = Common.ADO.DBManager.GetList(new T_Product());
        //    foreach (T_Product p in objs)
        //    {
        //        products.Add(p);
        //    }
        //    return products;
        //}
    }
}
